package lab02.test02;

/**
 * Created by JAVA on 2017/10/13.
 */
public class Circular {
    //属性
    double r;
    double area;
    double grith;


    //行为
Circular(){

}

    public Circular(double r) {
        this.r = r;
    }

    public double getR() {
        return r;
    }

    public void setR(double r) {
        this.r = r;
    }

    void count (){
    grith=2*3.14*r;
    area=3.14*r*r;
    System.out.println("grith is "+grith+" area is "+area);
    }
}


